﻿(function() {
    'use strict';

    angular.module('app', ['ngRoute', 'common']);
    angular.module("app").config(mainAppRouter);

    function mainAppRouter($routeProvider) {
        $routeProvider
            .when('/', {
                templateUrl: 'App/Partials/Page-Templates/login.html',
                controller: "loginController"
            })
             .when('/register', {
                 templateUrl: 'App/Partials/Page-Templates/register.html',
                 controller: "registerController"
             })
            .otherwise({
                redirectTo: 'Partials/Page-Templates/login.html',
            });

    }

}());
